package com.xinrui.sunnyday.dao;

import com.xinrui.sunnyday.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrdersettingDao {
    /**
     * 根据日期查询该预约设置是否存在
     * @param orderDate
     * @return
     */
    OrderSetting findByOrderDate(Date orderDate);

    /**
     * 编辑: 根据日期修改可预约人数
     * @param orderSetting
     */
    void updateByOrderDate(OrderSetting orderSetting);

    /**
     * 新增
     * @param orderSetting
     */
    void add(OrderSetting orderSetting);

    List<Map<String, Integer>> findDataByMonth(String month);

    /**
     * 更新已预约人数
     * @param orderSetting
     */
    void editReservationsByOrderDate(OrderSetting orderSetting);
}
